import API from '@/axios/APIConfig';

const DEV_FLAG = process.env.NODE_ENV === "development" ? '' : '';

export default {
    getPtTree(params, response){
        new API({
            method: 'get',
            url: `${DEV_FLAG}/ptConfig/ptTree`,
            params: params,
            response: response,
            allResData: false,
            needTips: false,
        })
    },
    queryPtTableConfig(params, response){
        new API({
            method: 'get',
            url: `${DEV_FLAG}/ptConfig/queryPtTableConfig`,
            params: params,
            response: response,
            allResData: false,
            needTips: false,
        })
    },
    checkBaq(params, response){
        new API({
            method: 'post',
            url: `${DEV_FLAG}/dataCheck/checkBaq`,
            params: params,
            response: response,
            allResData: false,
            needTips: false,
        })
    },
    checksszx(params, response){
        new API({
            method: 'post',
            url: `${DEV_FLAG}/dataCheck/checksszx`,
            params: params,
            response: response,
            allResData: false,
            needTips: false,
        })
    },
    
    insertData(params, response){
        new API({
            method: 'post',
            url: `${DEV_FLAG}/dataCheck/insertData`,
            params: params,
            response: response,
            allResData: false,
            needTips: false,
        })
    },

    insertSjzxData(params, response){
        new API({
            method: 'post',
            url: `${DEV_FLAG}/dataCheck/insertSjzxData`,
            params: params,
            response: response,
            allResData: false,
            needTips: false,
        })
    },

    querySjjcLogInfo(params, response){
        new API({
            method: 'post',
            url: `${DEV_FLAG}/sjjcLogInfo/querySjjcLogInfo`,
            params: params,
            response: response,
             allResData: false,
            needTips: false,
        })
    },
    queryPtxjInfo(params, response){
        new API({
            method: 'get',
            url: `${DEV_FLAG}/ptConfig/queryPtxjInfo`,
            params: params,
            response: response, allResData: false,
            needTips: false,
        })
    },
    queryListPage(params, response){
        new API({
            method: 'post',
            url: `${DEV_FLAG}/dataCheck/queryListPage`,
            params: params,
            response: response, allResData: false,
            needTips: false,
        })
    },
    querySql(params, response){
        new API({
            method: 'post',
            url: `${DEV_FLAG}/ptConfig/querySql`,
            params: params,
            response: response, allResData: false,
            needTips: false,
        })
    },
    queryRulesLogResultList(params, response){
        new API({
            method: 'post',
            url: `${DEV_FLAG}/rules/queryRulesLogResultList`,
            params: params,
            response: response, allResData: false,
            needTips: false,
        })
    }
}